package poo.file;

import java.util.*;
import java.io.*;

public class Crea {

	public static void main(String[] args) throws IOException {

		File f1 = new File("C:\\Users\\Paco\\Desktop\\f1.dat");
		DataOutputStream dos = new DataOutputStream(new FileOutputStream(f1));
		Scanner sc = new Scanner(System.in);
		for (;;) {
			System.out.println("int >");
			String input = sc.nextLine();
			if (input.length() == 0)
				break;
			dos.writeInt(Integer.parseInt(input));
		}
		dos.close();
		sc.close();
	}
}
